{{extend 'layout.html'}}

{{if not auth.is_logged_in():}}
    <h4>{{=T('Please sign in to download or administer files')}}</h4>
    <h4>{{=T('if you require a user name or password contact: ')}}</h4>
{{else:}}
    <h3>{{=T('Menu:')}}</h3>
    <ul>
{{if auth.has_membership(auth.id_group('uploader'))  or response.isAdmin:}}
        <li><a href="{{=URL(r=request,c='default',f='upload')}}">{{=T('Upload')}}</a></li>
{{pass}}
{{if auth.has_membership(auth.id_group('downloader')) or response.isAdmin:}}
        <li><a href="{{=URL(r=request,c='default',f='files')}}">{{=T('Files')}}</a></li>
{{pass}}
{{if response.isAdmin:}}
        <li><a href="{{=URL(r=request,c='default',f='uploaders')}}">{{=T('Uploaders')}}</a></li>
{{pass}}
    </ul>
{{pass}}
